package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.mapper.ChartMapper;
import cn.wolfcode.crm.query.SaleChartQuery;
import cn.wolfcode.crm.query.ShowLossChartQuery;
import cn.wolfcode.crm.service.IChartService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ChartServiceImpl implements IChartService {

    @Autowired
    private ChartMapper chartMapper;
    @Override
    public List<Map<String, Object>> selectSaleChart(SaleChartQuery qo) {

        List<Map<String, Object>> list = chartMapper.selectSaleChart(qo);
        return list;
    }

    @Override
    public List<Map<String, Object>> selectListLossChart(ShowLossChartQuery qo) {
        List<Map<String, Object>> list = chartMapper.selectListLossChart(qo);
        return list;
    }
}
